package com.ggb.reactive.domain.entity

import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.v3.oas.annotations.media.Schema
import lombok.AllArgsConstructor
import lombok.Builder
import lombok.Data
import lombok.NoArgsConstructor
import org.springframework.data.annotation.Id
import org.springframework.data.relational.core.mapping.Table
import java.math.BigDecimal
import java.time.Instant

@Table("setmeal")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title="口味实体 Setmeal")
data class Setmeal(
    @Id
    var id:Long?=null,
    @Schema(description = "菜品名")
    var name:String?=null,
    //菜品分类id
    @Schema(description = "菜品分类id")
    var categoryId:Long?=null,
    //菜品价格
    @Schema(description = "菜品价格")
    var price: BigDecimal?=null,
    //图片
    @Schema(description = "图片")
    var image:String?=null,
    //描述信息
    @Schema(description = "描述信息")
    var description:String?=null,
    //0 停售 1 起售
    @Schema(description = "0 停售 1 起售")
    var status:Int?=null,
    //创建时间
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-6")
    var createTime: Instant?=null,
    //更新时间
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-6")
    var updateTime: Instant?=null,
    //创建人
    @Schema(description = "创建人")
    var createUser:Long?=null,
    //修改人
    @Schema(description = "修改人")
    var updateUser:Long?=null
)
